package com.netx.ebs;
import com.netx.data.Connection;
import com.netx.generics.basic.Checker;


public class Entities {

	protected Entities() {
	}
	
	public static Users getUsers(Connection c) {
		Checker.checkNull(c, "c");
		return (Users)c.getEntity("users");
	}

	public static Roles getRoles(Connection c) {
		Checker.checkNull(c, "c");
		return (Roles)c.getEntity("roles");
	}
	
	public static Permissions getPermissions(Connection c) {
		Checker.checkNull(c, "c");
		return (Permissions)c.getEntity("permissions");
	}

	public static PermissionGroups getPermissionGroups(Connection c) {
		Checker.checkNull(c, "c");
		return (PermissionGroups)c.getEntity("permission_groups");
	}

	public static Errors getErrors(Connection c) {
		Checker.checkNull(c, "c");
		return (Errors)c.getEntity("errors");
	}

	public static Transgressions getTransgressions(Connection c) {
		Checker.checkNull(c, "c");
		return (Transgressions)c.getEntity("transgressions");
	}
}
